using System;
using System.Collections.Generic;
using System.Text;

namespace Universe.Farm
{
    public class ServiceListenerConfiguration
    {
        private string _Id;
        private TimeSpan? _Interval;
        private IServiceHealthListener _ServiceListener;


        public ServiceListenerConfiguration()
        {
        }


        public ServiceListenerConfiguration(IServiceHealthListener serviceListener)
        {
            _ServiceListener = serviceListener;
        }

        public ServiceListenerConfiguration(string id, TimeSpan? interval, IServiceHealthListener serviceListener)
        {
            _Id = id;
            _Interval = interval;
            _ServiceListener = serviceListener;
        }

        public string Id
        {
            get { return _Id; }
            set { _Id = value; }
        }


        public TimeSpan? Interval
        {
            get { return _Interval; }
            set { _Interval = value; }
        }


        public IServiceHealthListener ServiceListener
        {
            get { return _ServiceListener; }
            set { _ServiceListener = value; }
        }
    }
}